package org.dromara.system.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.system.domain.SysChatContact;

import java.util.Date;

/**
 * 会话列业务对象 sys_chat_contact
 *
 * @author Lion Li
 * @date 2025-02-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysChatContact.class, reverseConvertGenerate = false)
public class SysChatContactBo extends BaseEntity {

    /**
     * 用户状态ID
     */
    @NotNull(message = "用户状态ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 标记人uid
     */
    private Long uid;

    /**
     * 会话最新消息ID
     */
    private Long lastMsgId;

    /**
     * 是否置顶
     */
    private Boolean top;

    /**
     * 房间ID
     */
    private Long roomId;

    /**
     * 读消息时间
     */
    private Date readTime;

    /**
     * 会话内消息最后更新的时间(只有普通会话需要维护，全员会话不需要维护)
     */
    private Date activeTime;

    /**
     * 备注
     */
    private String remark;

}
